﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookStore.Data;
using System.Data;
using System.Data.SqlClient;


namespace BookStore.Bussiness
{
    public class adminService
    {
        
        #region getbyID
        public static adminInfo getbyID(string username)
        {
            return adminController.getbyID(username);
        }
        #endregion

        #region getAll
        public static DataTable getAll() {
            return adminController.ListAdm();
        }
        #endregion

        #region insert
        public static bool insertAdmin(adminInfo objAdmin) {
            return adminController.insertAdm(objAdmin);
        }
        #endregion

        #region update
        public static bool updateAdmin(adminInfo objAdmin) {
            return adminController.updateAdm(objAdmin);
        }
        #endregion

        #region delete
        public static bool deleteAdmin(string username) {
            return adminController.deleteAdm(username);
        }
        #endregion

        #region checkUsername
        public static bool checkUsername(string username) {
            return adminController.checkUsername(username);
        }
        #endregion

        #region checkDecen
        public static int checkDecen(string username) {
            return adminController.checkDecen(username);
        }
        #endregion

    }
}
